package edu.hnnu.sport_event.mapper;

import edu.hnnu.sport_event.entity.SignUp;
import edu.hnnu.sport_event.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SignUpMapper {

    // 删除报名信息
    int delete(int id);

    SignUp selectByEventId(int eventId);

    int add(@Param("studentId") int studentId, @Param("eventId") int eventId);

    Student selectInfo(int id);

    int update(@Param("id") int id, @Param("franction") int franction);

    // 删除分数信息
    int deleteScoreInfo(@Param("studentId") int studentId, @Param("eventId") int eventId);

}
